package mobi.daogu.powerstripcontroller

import android.os.Bundle
import androidx.activity.ComponentActivity
import mobi.daogu.powerstripcontroller.widget.ConfigItemView

/**
 * @FileName: EditorActivity
 * @Desc:
 * @Author gene
 * @Date: 2024/11/20 13:10
 * https://github.com/YahooArchive/android-range-seek-bar
 */
class EditorActivity: ComponentActivity() {
    private var index = -1

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.editor_layout)

        intent.getIntExtra("index", -1).let {
            index = it
            findViewById<ConfigItemView>(R.id.cfgv).text = "${it + 1}"
        }
    }
}